import {AxiosPromise} from 'axios';
import {ProductStoreQuery, ProductStoreVo} from './types';
import request from '@/utils/request';

export const getProductStoreList = (query: ProductStoreQuery): AxiosPromise<ProductStoreVo[]> => {
  return request({
    url: '/oce/productStore/list',
    method: 'get',
    params: query
  });
};


export const syncProductStore = (accountId: string | number): AxiosPromise => {
  return request({
    url: '/oce/productStore/syncProductStore?accountId=' + accountId,
    method: 'get'
  });
};

